#ifndef CHAT_H
#define CHAT_H

#include <QWidget>
#include <QTextEdit>
#include <QLineEdit>
#include <QVBoxLayout>
#include "hraci.h"

class Chat : public QWidget
{
Q_OBJECT
private:
    Hraci * tabulka;
    QTextEdit * chatdata;
    QLineEdit * chatradek;
    QVBoxLayout *mainLayout;

public:
    Chat(QWidget * parent, Hraci * tabulka);

signals:
    void newChatMessage(QString message);

public slots:
    void textSent();
    void getChatMessage(QString message);
};

#endif // CHAT_H
